-- GENERATED SPELL FOR [Blazing Fireguard] --


function spell0_8910(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(13341,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8910', 577, 1)
end

function spell1_8910(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(12742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8910', 23000, 1)
end

function spell2_8910(pUnit, Event) --@Scorch,n/a--
pUnit:FullCastSpellOnTarget(15241,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8910', 1500, 1)
end

function Sorts_8910(pUnit, Event)
local choix_sorts_8910 = math.random(0, 2)
if choix_sorts_8910 == 0 then
pUnit:RegisterEvent('spell0_8910', 1, 1)
end
if choix_sorts_8910 == 1 then
pUnit:RegisterEvent('spell1_8910', 1, 1)
end
if choix_sorts_8910 == 2 then
pUnit:RegisterEvent('spell2_8910', 1, 1)
end
end

function mob8910_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8910', math.random(1500, 3000), 1)
end

function mob8910_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8910_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8910_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8910, 1, 'mob8910_Action')
RegisterUnitEvent(8910, 2, 'mob8910_Leave')
RegisterUnitEvent(8910, 3, 'mob8910_Kill')
RegisterUnitEvent(8910, 4, 'mob8910_Die')
